package com.stars.util.common;

import com.stars.base.exception.BaseException;

public class Assert {

    private Assert() {

    }

    public static void isNotNull (Object o, String message) throws BaseException {
        if ( o == null ) {
            throw new BaseException(message);
        }
    }

    public static void isNotNull (Object o) throws BaseException {
        isNotNull(o, "参数必须不为空");
    }

}
